package com.test.dao;

import com.test.aop.DS;
import com.test.aop.DataSourceType;
import com.test.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
@DS(value = DataSourceType.DS2)
public interface DeptMapper {
    @DS(value = DataSourceType.DS1)
    @Select("select ID,NAME from DEPT where ID=#{id}")
    Dept getDeptById(Integer id);

    @Select("select ID,NAME from DEPT where ID=#{id}")
    Dept getDeptById2(Integer id);
}
